package com.aabte.commons.encrypt.rsa;

import com.aabte.commons.encrypt.AbstractEncryptor;
import com.aabte.commons.encrypt.EncryptConfig;
import java.security.Key;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/3/29
 */
public abstract class AbstractEncryptorRSA<T extends Key> extends AbstractEncryptor<T> {

  private static final String KEY_ALGORITHM = "RSA";

  @Override
  public String getAlgorithm() {
    return KEY_ALGORITHM;
  }

  @Override
  public String getProviderName() {
    return EncryptConfig.providerName();
  }
}
